//
//  RequestTool.h
//  Slice
//
//  Created by lanou on 16/6/14.
//  Copyright © 2016年 wangjinchao. All rights reserved.
//

#import <Foundation/Foundation.h>

//请求类型
typedef enum {
    GET ,
    POST
}requsetType;




@interface RequestTool : NSObject

//数据请求 type请求的类型 urlString网址字符串 parameter参数 callBack返回参数
+ (void)requsetWithType:(requsetType)type URLString:(NSString *)urlString paremeter:(NSDictionary *)parameter callBack:(void(^)(NSData *data, NSError *error))callBack;



@end
